local SceneMgr = class("SceneMgr");
function SceneMgr:ctor()
    
end

function SceneMgr:replaceScene(name, transitionType, time, more)
    local newScene = require(SCRIPTS_DIR .. ".scenes." .. name).new();
    if transitionType then
        newScene = display.wrapSceneWithTransition(newScene, transitionType, time, more)
    end
    cc.Director:getInstance():replaceScene(newScene)
end

function SceneMgr:runWithScene(scene)
    cc.Director:getInstance():runWithScene(scene);
end

function SceneMgr:pushScene(scene)
    cc.Director:getInstance():pushScene(scene);
end

function SceneMgr:popScene()
    cc.Director:getInstance():popScene();
end

function SceneMgr:pause()
    cc.Director:getInstance():pause();
end

function SceneMgr:resume()
    cc.Director:getInstance():resume();
end


mgrs.scene = nil;
mgrs.singleClass(mgrs,SceneMgr,"scene");

--endregion
